Skip to content

Commit

Permalink
Fix 626 - Key frame name losted on key frame move
Browse files Browse the repository at this point in the history
- affect Widget_Keyframe_List::selected_kf description in any
case inside Widget_Keyframe_List::set_selected_keyframe
  • Loading branch information
d-j-a-y committed Apr 21, 2014
1 parent d8f23fc commit 6258d40
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion synfig-studio/src/gui/widgets/widget_keyframe_list.cpp
Expand Up @@ -202,7 +202,15 @@ Widget_Keyframe_List::set_kf_list(synfig::KeyframeList* x)
void
Widget_Keyframe_List::set_selected_keyframe(const synfig::Keyframe &x)
{
if (x == selected_none || x == selected_kf) return;
if (x == selected_none) return;

if (x == selected_kf)
{
// synfig::Keyframe::operator== act only on keyframe::time_
// In any case, affect keyframe description to do not loose it
selected_kf.set_description(x.get_description());
return;
}

selected_kf=x;
selected_=true;
Expand Down

0 comments on commit 6258d40

Please sign in to comment.